<!--
 * @Author: boyyang
 * @Date: 2022-01-06 15:44:39
 * @LastEditTime: 2022-02-21 16:04:25
 * @LastEditors: boyyang
 * @Description: 
 * @FilePath: \boyyang\plugin\boyyangUI\message\messageWrapper.vue
-->

<template>
    <div class="message-wrapper">
        <template v-for="(item, i) in props.content" :key="item.id">
            <content :content="item"></content>
        </template>
    </div>
</template>

<script lang="ts" setup>
import content from './content.vue'
import { IMessageContent } from './messageType'

interface IMessageWrapper {
    content?: IMessageContent[];
}
const props = withDefaults(defineProps<IMessageWrapper>(), {})   
                     
</script>

<style scoped lang="scss">
.message-wrapper {
    width: 100%;
    height: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
}
</style>
